﻿using Max.PH5_2010A.Shopping.DataAccess;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH5_2010A.Shopping.IRespository
{
    public interface IUnitOfWork
    {

        /// <summary>
        /// 获取上下文对象
        /// </summary>
        /// <returns></returns>
        MaxPH52010AShoppingDbContext GetDbContext();

        /// <summary>
        /// 用于提交数据到数据库同步
        /// </summary>
        /// <returns></returns>
        int SaveChanges();

    }
}
